package com.tianji.remark.service;

import com.tianji.remark.dto.LikeRecordFormDTO;
import com.tianji.remark.entity.LikedRecord;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 点赞记录表 服务类
 * </p>
 *
 * @author author
 * @since 2023-06-01
 */
public interface ILikedRecordService extends IService<LikedRecord> {
    /**
     * 点赞或取消点赞
     * @param recordDTO
     */
    void addLikeRecord(LikeRecordFormDTO recordDTO);

    /**
     * 定时任务：前往redis拉取点赞数，并发送MQ消息
     * @param bizType
     * @param maxBizSize
     */
    void readLikedTimesAndSendMessage(String bizType, int maxBizSize);
}
